#define _CRT_SECURE_NO_WARNINGS 1

#include <string>
#include <iostream>

using namespace std;

int main()
{
	string s("hello");
	string::reverse_iterator rit = s.rbegin();
	while (rit != s.rend())
	{
		cout << *rit << " ";
		++rit;
	}
	return 0;
}